package com.guoxin.chapter3.threadlocal.threadlocaltest;

/**
 * @author guoxin
 * @date 2019年8月23日
 */
public class Run {
	public static void main(String[] args) throws InterruptedException {
		ThreadA a = new ThreadA();
		ThreadB b = new ThreadB();
		a.start();
		b.start();
		for (int i = 0; i < 100; i++) {
			Tools.tl.set("Main" + (i + 1));
			System.out.println("Main get Value=" + Tools.tl.get());
			Thread.sleep(200);
		}
	}
}
